package com.xxh.springclouddemo.controller.sentinel;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author xxh
 * @Date 2024/4/20 20:59
 */
@RestController
public class ProviderApiController {

    @Value("${server.port}")
    private String port;

    @RequestMapping("/getport")
    public String getProvider(){

        String str = "我是sleuth提供者："+port;
        return str;

    }


}
